Skip to content

feat: add shell completion support#6

Open
salim-b wants to merge 1 commit intostringcase:masterfrom
salim-b:copilot/add-shell-completion-support
Open

feat: add shell completion support#6
salim-b wants to merge 1 commit intostringcase:masterfrom
salim-b:copilot/add-shell-completion-support

Conversation

@salim-b
Copy link
Copy Markdown

@salim-b salim-b commented Apr 7, 2026

Add a ccase completion <shell> subcommand using clap_complete to generate shell completion scripts for bash, elvish, fish, powershell, and zsh.

  • Add clap_complete v4 dependency
  • Add completion subcommand to the CLI (displayed last before help)
  • Handle completion generation in main, writing to stdout
  • Add integration tests for all supported shells and error cases
  • Document the subcommand in README

Co-authored-by: Copilot copilot@github.com

Add a `ccase completion <shell>` subcommand using `clap_complete` to
generate shell completion scripts for bash, elvish, fish, powershell,
and zsh.

- Add `clap_complete` v4 dependency
- Add `completion` subcommand to the CLI (displayed last before help)
- Handle completion generation in main, writing to stdout
- Add integration tests for all supported shells and error cases
- Document the subcommand in README

Co-authored-by: salim-b <20040931+salim-b@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants